CC=arm-apple-darwin-gcc-4.0.1
LD=$(CC)
LDFLAGS=-lobjc -framework CoreFoundation -framework Foundation -framework UIKit -framework LayerKit -framework CoreGraphics -isysroot $(HEAVENLY)

all:    SampleApp

SampleApp:  mainapp.o SampleApp.o
	$(LD) $(LDFLAGS) -v -o $@ $^
	rm -rf ./Kronos.app/
	mkdir ./Kronos.app/
	cp icon.png ./Kronos.app/
	cp Default.png ./Kronos.app/
	cp Info.plist ./Kronos.app/
	cp SampleApp ./Kronos.app/
	
%.o:    %.m
		$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

clean:
		rm -f *.o SampleApp
		rm -rf ./Kronos.app/